﻿@model MvcApplication6.Controllers.LoginModel
@{
    ViewBag.Title = "Login";
}
<h2>
    Login</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.LabelFor(m => m.Username)
    @Html.TextBoxFor(m => m.Username) 
    @Html.ValidationMessageFor(m => m.Username)
    @Html.LabelFor(m => m.Password)
    @Html.PasswordFor(m => m.Password)
    <input input type="submit" />
    @Html.ValidationSummary()
}